package com.qf.mrboot2.result;

/**
 * @Author: xiyang
 * @FileName: ResponseData
 * @Date: Created in 2021/5/28 10:19
 * @Vserion:
 * @Description: TODO
 */
public class ResponseData {


    private String eCode;

    private String errorInfo;

    private Object data;

    public ResponseData(String eCode, String errorInfo, Object data) {
        this.eCode = eCode;
        this.errorInfo = errorInfo;
        this.data = data;
    }
    public ResponseData(ResponseCode responseCode, Object data) {
        this.eCode = responseCode.geteCode();
        this.errorInfo = responseCode.getErrorInfo();
        this.data = data;
    }





    public String geteCode() {
        return eCode;
    }

    public void seteCode(String eCode) {
        this.eCode = eCode;
    }

    public String getErrorInfo() {
        return errorInfo;
    }

    public void setErrorInfo(String errorInfo) {
        this.errorInfo = errorInfo;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
